package com.whisper.common.constant;

/**
 * 缓存的key 常量
 * 
 * @author whisper
 */
public class ErrorCodeConstants
{
    /**
     * 全局异常
     */
    public static final String GLOBAL_EXCEPTION = "global";

    /**
     * 业务异常
     */
    public static final String SERVICE_EXCEPTION = "service";

    /**
     * 工具类异常
     */
    public static final String UTIL_EXCEPTION = "util";

    /**
     * 参数异常
     */
    public static final String ARGUMENT_EXCEPTION = "argument";

    /**
     * 参数非法
     */
    public static final String ARGUMENT_ILLEGAL_EXCEPTION = "argument.illegal";

    /**
     * 参数存在
     */
    public static final String ARGUMENT_EXIST_EXCEPTION = "argument.exist";

    /**
     * 参数不存在
     */
    public static final String ARGUMENT_NOT_EXIST_EXCEPTION = "argument.not.exist";

    /**
     * 参数重复
     */
    public static final String ARGUMENT_REPEAT_EXCEPTION = "argument.repeat";

    /**
     * 文件错误
     */
    public static final String FILE_EXCEPTION = "file";

    /**
     * 文件名长度限制
     */
    public static final String FILE_NAME_LENGTH_LIMIT_EXCEPTION = "file.name.length.limit";

    /**
     * 文件名长度限制
     */
    public static final String FILE_UPLOAD_FILENAME_EXCEED_LENGTH = "upload.filename.exceed.length";

    /**
     * 上传文件名长度限制
     */
    public static final String FILE_UPLOAD_EXCEED_MAX_SIZE = "upload.exceed.maxSize";

    /**
     * 文件大小长度限制
     */
    public static final String FILE_SIZE_LENGTH_LIMIT_EXCEPTION = "file.size.length.limit";

    /**
     * 文件上传错误
     */
    public static final String FILE_UPLOAD_EXCEPTION = "file.upload";

    /**
     * 无效扩展异常
     */
    public static final String FILE_INVALID_EXTENSION_EXCEPTION = "file.invalid.extension";

    /**
     * 操作异常
     */
    public static final String OPERATE_EXCEPTION = "file.operate";

    /**
     * 用户异常
     */
    public static final String USER_EXCEPTION = "user";

    /**
     * 用户黑名单
     */
    public static final String USER_BLACK_LIST_EXCEPTION = "user.black.list";

    /**
     * 用户黑名单
     */
    public static final String USER_LOGIN_BLOCKED_EXCEPTION = "login.blocked";

    /**
     * 验证码错误
     */
    public static final String USER_CAPTCHA_EXCEPTION = "user.captcha.error";

    /**
     * 验证码过期错误
     */
    public static final String USER_CAPTCHA_EXPIRE_EXCEPTION = "user.captcha.expire";

    /**
     * 用户不存在
     */
    public static final String USER_NOT_EXISTS_EXCEPTION = "user.not.exists";

    /**
     * 密码不匹配
     */
    public static final String USER_PASSWORD_NOT_MATCH_EXCEPTION = "user.password.not.match";

    /**
     * 用户密码最大次数限制
     */
    public static final String USER_PASSWORD_RETRY_LIMIT_EXCEED_EXCEPTION = "user.password.retry.limit.exceed";

    /**
     * 用户权限码异常
     */
    public static final String USER_NOT_PERMISSION_EXCEPTION = "user.not.permission";

    /**
     * 用户权限码异常
     */
    public static final String USER_ROLE_BLOCKED_EXCEPTION = "role.blocked";

    /**
     * 用户角色权限异常
     */
    public static final String USER_NOT_ROLE_EXCEPTION = "user.not.role";

    /**
     * 用户内部认证异常
     */
    public static final String USER_INNER_AUTH_EXCEPTION = "user.inner.auth";

}
